﻿<%@ Page Language="C#" MasterPageFile="~/masterPage/front/basePage.master" AutoEventWireup="true" CodeFile="News.aspx.cs" 
    Inherits="news" Title="新闻资讯" %>
    
<%@ Register TagPrefix="Epteks" TagName="NewsSearch" Src="~/Controls/front/NewsSearch.ascx" %>
<%@ Register TagPrefix="Epteks" TagName="NewsType" Src="~/Controls/front/NewsType.ascx" %>
<%@ Register TagPrefix="Epteks" TagName="TechProvPopu" Src="~/Controls/front/TechProvPopu.ascx" %>
<%@ Register TagPrefix="Epteks" TagName="TechNeedPopu" Src="~/Controls/front/TechNeedPopu.ascx" %>
<%@ Register TagPrefix="Epteks" TagName="TextPopu" Src="~/Controls/front/TextPopu.ascx" %>
<%@ Register TagPrefix="Epteks" TagName="DownPopu" Src="~/Controls/front/DownPopu.ascx" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <Epteks:NewsSearch ID="infoSearch" runat="server" />

    <div class="pictop mt5">
      <div class="tt">今日头条新闻</div>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
         <ContentTemplate>
        <asp:Repeater ID="imgNews" runat="server" >     
            <ItemTemplate>
               <a href='<%# "NewsView.aspx?id=" + Eval("Id") %>' target="_blank"><img src='<%# "imageOutput.aspx?id=" + Eval("Id") %>' alt="" runat="server"/></a>
              <div class="ct">
                <strong><a href='<%# "newsView.aspx?id=" + Eval("Id") %>' target="_blank"><%# Eval("Title") %></a></strong><br />                        
                <%# ((string)Eval("Content")).Length > 150 ? ((string)Eval("Content")).Substring(0, 150) + "..." : Eval("Content")%>
                &nbsp;&nbsp;<asp:HyperLink ID="imgCont" NavigateUrl='<%# "newsView.aspx?id=" + Eval("Id") %>' Text="详细内容>>" target="_blank" runat="server"/>
              </div>       
            </ItemTemplate>
        </asp:Repeater>
            </ContentTemplate>
    </asp:UpdatePanel>
      <div class="clear"></div>
    </div>
    
    <div class="banner mt5"><img id="Img2" src="~/images/xc_2.gif" alt="探讨技术难点，共享技术信息，你我的环保家园" runat="server"/></div>    
    
	<div class="mod mt5">
	  <div class="tt">
	    <h3>新闻资讯<asp:Label ID="searchInfo" runat="server" Visible="true"/></h3>
	  </div>
	</div>

    <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
         <ContentTemplate>
   <div class="mod mt1">
 	  <ul class="list_tt">
	    <li class="titleCol">标题</li>
	    <li class="dateCol">上传日期</li>
	  </ul>     
      <ul class="nlist">

	    <asp:Repeater ID="newsList" runat="server" >
	        <ItemTemplate>
                <li>
                    <a href="newsView.aspx?Id=<%# Eval("Id") %>" target="_blank">
                        <span class="cyan">[<%# Eval("TypeName")%>]</span>&nbsp;&nbsp;<%# ((string)Eval("Title")).Length > 38 ? ((string)Eval("Title")).Substring(0,38)+"...": Eval("Title")%></a><span class="dt"><%# Eval("PublishDate")%></span></li>
            </ItemTemplate>
	    </asp:Repeater>

      </ul>
      <div class="clear"></div>
    </div>

    <div id="pagecont">
        <webdiyer:aspnetpager id="AspNetPager"  runat="server" PageSize="26" AlwaysShow="True" OnPageChanged="AspNetPager_PageChanged" ShowCustomInfoSection="Left"
            style="font-size:12px" InputBoxStyle="width:19px"  PrevPageText="上页" NextPageText="下页" FirstPageText="首页" LastPageText="尾页" 
            CustomInfoHTML="当前第%CurrentPageIndex%页 &nbsp; 共%PageCount%页 &nbsp; 显示第%StartRecordIndex%条到%EndRecordIndex%条记录">
        </webdiyer:aspnetpager>	    
	</div>
       </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

